package com.bw.goods_module.category;

import android.widget.ImageView;

import com.bw.goods_module.R;
import com.bw.imgload_sdk.LoadImgUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class CategoryValueAdapter extends BaseQuickAdapter<CategoryValueEntity.Values, BaseViewHolder> {
    public CategoryValueAdapter() {
        super(R.layout.item_category_value);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CategoryValueEntity.Values values) {
        baseViewHolder.setText(R.id.category_value_item_tv,values.category_name);
        ImageView imageView = baseViewHolder.getView(R.id.category_value_item_img);
        LoadImgUtils.loadMatchImg(values.category_icon,imageView);
    }
}
